package com.ruoyi.swla2.util;

import java.util.HashMap;
import java.util.Map;

public class OperatorTransform {
    private static final Map<String, String> OP_MAP = new HashMap<>();

    static {
        OP_MAP.put("LIKE", " like ");
        OP_MAP.put("GT", " &gt; ");
        OP_MAP.put("GE", " &gt;= ");
        OP_MAP.put("LT", " &lt; ");
        OP_MAP.put("LE", " &lt;= ");
        OP_MAP.put("EQ", " = ");
        OP_MAP.put("NE", " != ");
    }

    public static String transform(String origin) {
        return OP_MAP.get(origin);
    }
}
